﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ASPxFormLayout1_E1_Click(object sender, EventArgs e)
    {
       // if (!IsPostBack)
       // {
       //  HttpCookie cookie = Request.Cookies["UserInfo"];
       //  if (cookie != null)
        // {
            string value = grd1.GetRowValues(grd1.FocusedRowIndex, "CODE").ToString();
            if (value == Profile.UserInfo.PeopleCode.ToString())
            {
                grd1.StartEdit(grd1.FocusedRowIndex);
            }
        // }
       // }
    }
    protected void btnXlsExport_Click(object sender, EventArgs e)
    {
        gridExport.WriteXlsToResponse();
    }
    protected void btnXlsxExport_Click(object sender, EventArgs e)
    {
        gridExport.WriteXlsxToResponse();
    }
}